package com.cloudkinto.service.dic;

import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.entity.DicBusinessItemDo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cloudkinto.service.dic.vo.dicBusinessItem.DicBusinessItemAddReq;
import com.cloudkinto.service.dic.vo.dicBusinessItem.DicBusinessItemDetailRes;
import com.cloudkinto.service.dic.vo.dicBusinessItem.DicBusinessItemListPageRes;
import com.cloudkinto.service.dic.vo.dicBusinessItem.DicBusinessItemUpdateReq;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 码表明细表 service接口
 * </p>
 * @author 张永远
 * @since 2020-05-19
 */
public interface DicBusinessItemService extends IService<DicBusinessItemDo> {

    SingleResult addInit();

    DicBusinessItemAddReq add(DicBusinessItemAddReq req, Long userId);

    SingleResult updateInit(Long id);

    DicBusinessItemUpdateReq update(DicBusinessItemUpdateReq updateVo, Long userId);

    int delete(Long id, Long userId);

    DicBusinessItemDetailRes detail(Long id);

    SingleResult pageInit();

    List<DicBusinessItemListPageRes> getList(Map<String, String> map);

    PageResult getListPage(Map<String, String> map);
}
